package com.quasar.hpatient.module.home_medicine_record;

import android.support.v7.widget.RecyclerView;

import com.quasar.hpatient.R;

import lib.quasar.base.frame.BaseActivity;

/**
 * description: 调药记录
 * created by kalu on 2018/5/7 16:26
 */
public class MedicineRecordActivity extends BaseActivity<MedicineRecordPresenter> implements MedicineRecordView {

    @Override
    public int initView() {
        return R.layout.activity_home_medicine_record;
    }

    @Override
    public void initDataLocal() {

        findViewById(R.id.activity_home_medicine_record_back).setOnClickListener(v -> onBackPressed());

        final MedicineRecordPresenter presenter = getPresenter();
        final RecyclerView recycler = findViewById(R.id.activity_home_medicine_record_list);
        presenter.initList(this, recycler);
    }

    @Override
    public void initDataNet() {
        final MedicineRecordPresenter presenter = getPresenter();
        final RecyclerView recycler = findViewById(R.id.activity_home_medicine_record_list);
        presenter.recordList(this, recycler);
    }
}
